package cn.kgc.education.controller;

import cn.kgc.education.response.ResponseResult;
import cn.kgc.education.service.StudentService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 课工场
 * @date 2024/9/11
 * @description 图形报表的请求处理
 */
@RestController
@RequestMapping("echarts")
public class EchartsController {

    @Resource
    private StudentService studentService;

    @RequestMapping("line")
    public ResponseResult lineData() {

        return studentService.lineData();

    }

    @RequestMapping("rose")
    public ResponseResult roseData() {

        return studentService.roseData();

    }


    @RequestMapping("bar")
    public ResponseResult barData() {
        return  studentService.barData();
    }


}
